home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1995 November
/
EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso
/
earcd
/
program
/
gcc
/
libmat.lha
/
src
/
mqr.cc
< prev
next >
Wrap
C/C++ Source or Header
|
1980-01-01
|
307b
|
19 lines
// MATRIX LIB
// TOMMY JOHANSSON 1995
Matrix Householder(const Matrix & x)
{
return(I(x.n)-2*x*T(x)/(x*T(x)));
}
#include "matrix.h"
void QR(const Matrix & A,Matrix & Q,Matrix & R)
{
int i,j;
Matrix h(A.m,1);
#ifdef DEBUG
printf("QR-faktoriserar matris.\n");
#endif
for(i=1;i<=A.m;i++)
{